package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entry.Usercar;
import com.example.demo.service.UsercarService;
import com.example.demo.mapper.UsercarMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 16040
* @description 针对表【usercar】的数据库操作Service实现
* @createDate 2022-05-05 14:48:42
*/
@Service
public class UsercarServiceImpl extends ServiceImpl<UsercarMapper, Usercar>
implements UsercarService{

    @Autowired
    UsercarMapper usercarMapper;

    @Override
    public List<Usercar> getCar(String name) {
        return usercarMapper.selectByName(name);
    }
}
